home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Sep 90 / MacApp.Tech$ 9⁄21⁄90 / 2006-Re Need to define li-Sep90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1012 b   |  31 lines  |  [TEXT/GEOL]

  1. Item    7028842                         17-Sept-90        11:02PDT
  2.  
  3. From:   SCHMUCKER1                      Schmucker, Kurt
  4.  
  5. To:     MORTENSEN.K                     Mortensen, Keith
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    Re: Need to define list itms
  10.  
  11. Keith,
  12.  
  13.     You can't define your list items in ViewEdit.  ViewEdit only lets you
  14. specify the geometric arrangements between the various views in your window.
  15. Any custom behavior of these views must be coded by you.  In the case of the
  16. list items in a TTextListView:
  17.  
  18.     The text strings in a TTextListView are supplied by the method
  19.  
  20. PROCEDURE TTextListView.GetItemText(anItem: INTEGER; VAR aString: Str255);
  21.  
  22. which MUST be overridden in your subclass of TTextListView.  Basically, MacApp
  23. will call this method with anItem = i when it wants to draw the i-th item.  You
  24. just give it back the text in aString, and MacApp does the rest.
  25.  
  26.  
  27.     Note also, that you have to tell MacApp how long your list is.
  28.  
  29.         Kurt
  30.  
  31.